package meijuli.com.join51.business.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import meijuli.com.join51.business.R;
import meijuli.com.join51.business.fragment.FlowFragment;

/**
 * 钱包流水明细
 *
 * @author wenqin 2017-05-05 16:58
 */

public class FlowActivity extends BaseActivity {
    public static final String KEY_FLOW_TYPE = "key_flow_type";

    public static void start(Activity activity, int type) {
        Intent intent = new Intent(activity, FlowActivity.class);
        intent.putExtra(KEY_FLOW_TYPE, type);
        activity.startActivity(intent);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment);
        int type = getIntent().getIntExtra(KEY_FLOW_TYPE, 0);

        addFragment(FlowFragment.newInstance(type));


    }
}
